import { DataTypes , Model } from "sequelize"
import { sequelize } from "../component/db/sequelize.js"

class BookDb extends Model {}
BookDb.init({
  BookName : {
    type : DataTypes.STRING,
    allowNull : false
  },
  author : {
    type : DataTypes.STRING,
    allowNull : false
  }
},{
  sequelize,modelName:'BookDb'
})

export default BookDb